package com.zjhb.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.zjhb.common.util.StringMyUtil;

@javax.persistence.Entity
@javax.persistence.Table(name = "keep_info", schema = "army", catalog = "")
public class KeepInfoEntity {
	private String id;
	private String keepApplyId;
	private String keepTime;
	private String info;
	private List<String> wjIds;
	private List<FileEntity> files;
	private String keepUser;
	private String keepUserId;
	
	@Transient
	public List<FileEntity> getFiles() {
		return files;
	}

	public void setFiles(List<FileEntity> files) {
		this.files = files;
	}

	@Transient
	public String getKeepUser() {
		return keepUser;
	}

	public void setKeepUser(String keepUser) {
		this.keepUser = keepUser;
	}
	@Transient
	public String getKeepUserId() {
		return keepUserId;
	}

	public void setKeepUserId(String keepUserId) {
		this.keepUserId = keepUserId;
	}

	@Transient
	public List<String> getWjIds() {
		return wjIds;
	}

	public void setWjIds(List<String> wjIds) {
		this.wjIds = wjIds;
	}

	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "ID")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "keep_apply_id")
	public String getKeepApplyId() {
		return keepApplyId;
	}

	public void setKeepApplyId(String keepApplyId) {
		this.keepApplyId = keepApplyId;
	}

	
	@javax.persistence.Basic
	@javax.persistence.Column(name = "keep_time")
	public String getKeepTime() {
		return StringMyUtil.dateTimeSplit(keepTime);
	}

	public void setKeepTime(String keepTime) {
		this.keepTime = keepTime;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "info")
	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	
}
